const koa = require('koa');
const logger = require('koa-logger');
const serve = require('koa-static');

const port = 11111;//nginx分配的端口

var app = new koa();

app.use(logger())
    .use(serve('public'));//默认可访问的文件夹

app.listen(port, function () {
    console.log(`\n\nlistening on port ${port}\n\n`);
});